import request from "./request"

const routeApi = {
    
    all : (data)=>{
        return request.post('/admin/common/category/all',data)
    },
    add:(data)=>{
        return request.post('/admin/common/category/add',data)
    },
    update:(data)=>{
        return request.post('/admin/common/category/update',data)
    },

    del:(ids)=>{
        return request.post('/admin/common/category/del',{
            ids
        })
    },

    // 刷新所有缓存
    refreshAll : ()=>{
        return request.post('/admin/common/category/refreshAll')
    },
}

export default routeApi